<?php

class User_Action_Admin_Index extends Action_Admin
{

	function execute($request, $initial = false, $script = NULL)
	{

		if ($initial = true)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/user',
					'label' => 'Manage User'
				),
			));
		}
		
		$table = Model::getTable('user');

		$items = $table -> fetchAll();

		$request -> response = View::render($script = 'user/html/admin/index', $data = array('items' => $items));

	}

}
